﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;

namespace EmotionPlotter
{
    /// <summary>
    /// Interaction logic for EmotionLevelCollection.xaml
    /// </summary>
    public partial class EmotionLevelCollection : UserControl
    {
        public EmotionLevelCollection()
        {
            InitializeComponent();
        }

        ObservableCollection<EmotionLevels> _Emotions = new ObservableCollection<EmotionLevels>();

        public ObservableCollection<EmotionLevels> GetEmotions
        {
            get
            {
                return _Emotions;
            }

        }

        public void AddEmotion(EmotionLevels Emo)
        {
            _Emotions.Add(Emo);
            this.wrapPanel1.Children.Add(Emo); 
        }

         
    }
}
